CURRENT_DIR := $(dir $(lastword $(MAKEFILE_LIST)))
FOLDER_EXISTS := $(shell test -d $(CURRENT_DIR)/$(CONFIG_KERNEL_BOARD_NAME) && echo exists)
$(if $(FOLDER_EXISTS),, $(error Directory "$(CURRENT_DIR)/$(CONFIG_KERNEL_BOARD_NAME)" does not exist))

obj-y += $(CONFIG_KERNEL_BOARD_NAME)/
EXTRA_CFLAGS            += -Iarch/arm/mach-fh/qm102v/$(CONFIG_KERNEL_BOARD_NAME)
